<%-- 
    Document   : AddPostBody
    Created on : Apr 29, 2011, 3:16:06 AM
    Author     : Emyzzz
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib  uri= "http://java.sun.com/jstl/core_rt" prefix="core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add Post</title>

    </head>
    <body>
  
        <html:form action="/postOperations.do?actionType=add">
            <center>
                <h2> Post Title: <html:text property="postTitle" size="30"/></h2>
                <font size="2"><html:errors property="EmptyTitle"/></font>
                <br/>
                <font size="2"><html:errors property="EmptyBody"/></font>
                <h4> <input type="button" value="Insert Code Block" id="codeblock" onclick="makecode()" /></h4>
           
                <html:textarea property="postBody"   styleId="myt" >
                </html:textarea>
                <html:hidden property="threadid" value="${param.threadid}"/><br/><br/>
                <html:hidden property="memberid" value="${sessionScope.id}"/><br/><br/>
                <html:hidden property="postid" value="0"/>
               
                <html:submit value="Add post" style="width : 99px; height : 20px;"></html:submit>
            </center>
        </html:form>

    </body>
</html>